home *** CD-ROM | disk | FTP | other *** search
- 20-Dec-83 21:39:26
- Fm: Jeff Garbers 73105,330
- To: all
-
- Hi-- while browsing through the MS-DOS manual for our new Tandy 2000 (yes,
- we'll get Crosstalk going on it soon), we noticed a very handy feature in batch
- processing-- and I'll be darned, but it works on the PC! You can refer to
- variables which have been SET in your environment simply by placing the
- variable name in between percent signs. For example, if your batch file
- DOIT.BAT has
-
- masm %workfile%;
- and you did a SET WORKFILE=BONZO.ASM, the batch file expands to "masm
- BONZO.ASM;". Extremely handy, especially considering that applications can
- change the values of environment variables. I was complaining that MS-DOS
- couldn't do that sort of thing from the start-- seemed too natural-- and now we
- find it was in there all along.
-
- As with any other undocumented feature, there may very well be bugs in this.
- We only tried it long enough to see that it worked for this simple example.
- Try it out and let's see if there are any problems that need to be worried
- about. /// JPG
-